package com.dhcc.httpserver;

import java.util.HashMap;
import java.util.Map;

/**
 * servlet工厂<br>
 * 
 * servlet上下文
 * 
 * @author Administrator
 *
 */
public class ServletContext {
	//为了一个servlet取一个别名,通过mapping查找这个servlet
	// login(servlet别名) --> LoginServlet(Servlet类)
	private Map<String, String> servlet;
	// url --> login    多个浏览器Url 对应  一个 servlet别名
	//  /log(浏览器Url)  ---> login(servlet别名)
	//  /login(浏览器Url) ---> login(servlet别名)
	private Map<String, String> mapping;
	
	
	ServletContext(){
		
		this.servlet = new HashMap<String,String>();
		this.mapping = new HashMap<String,String>();
	}


	public Map<String, String> getServlet() {
		return servlet;
	}


	public void setServlet(Map<String, String> servlet) {
		this.servlet = servlet;
	}


	public Map<String, String> getMapping() {
		return mapping;
	}


	public void setMapping(Map<String, String> mapping) {
		this.mapping = mapping;
	}
	
	
	
	
	
}
